<!DOCTYPE html>
<html lang="zh">
    <head>
        <title>金融计算器</title>
        <meta name="description" content="全新smart fortwo提供先享后选弹性购车方案以及 贷款购车方案，低首付，低月付，更有0尾款福利! smart贷款买车方案，轻松开走你的smart! 访问smart官网了解贷款购车详情。" />
        <meta name="keywords" content="零首付买车,贷款买车,smart,smart,smart汽车,斯玛特,smart 月供,smart官网,smart汽车官网" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta charset="utf-8">
        <script src="/static/smart/jquery.js"></script>
        <link href="/static/smart/bootstrap.css" rel="stylesheet" />
        <link href="/static/smart/swiper3.07.min.css" rel="stylesheet">
        <link rel="stylesheet" href="/static/smart/style.css?{{time()}}" id="car_css" />
        <link type="text/css" rel="stylesheet" href="/static/smart/global.css?{{time()}}" />
        <script type="text/javascript" src="/static/smart/jquery-ui.js"></script>
        <script type="text/javascript" src="/static/smart/selectToUISlider.jQuery.js?{{time()}}"></script>
        <script>
            var zhydb_baseurl = "//china.smart.com";
            var imgpath = '';
            //var verifyhash = 'fbfe5588a3382578';
            var modeimg = 'mode/area/images';
            var modeBase = '';
            var zhihuiyunuid = '';
            var zhihuiyunid = '';
            var groupid = 'guest';
            var channelid = '14';
            var realmoney = 0;
        </script>
    </head>
    <body>
        <div id="main">
            <div id="logo"><img src="/static/smart/logo.png" /></div>
            <div id="title"><img src="/static/smart/title.png" /></div>
            <div class="smart-box">
                <form class="form-horizontal">
                    <div class="car_choose">
                        <div class="curr" ref="fortwo"></div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3-5 control-label smart-label">车&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型</label>
                        <div class="col-sm-8-5">
                            <select class="form-control select-bg" id="s_model">
                                <option value="smart fortwo 硬顶版52千瓦灵动版" >smart fortwo 硬顶版52千瓦灵动版</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3-5 control-label smart-label">购车方案</label>
                        <div class="col-sm-8-5">
                            <select class="form-control select-bg" id="s_type">
                                <option value="零利率金融贷款方案" >零利率金融贷款方案</option>
                            </select>
                        </div>
                    </div>
                    <div class="dot"></div>
                    <div class="finance">
                    <div class="finance-bottom">
                    <div class="finance-calculate">
                        <div class="calculator" id="tx0yf" style="visibility:hidden;height: 0px;top:100%;left: 0;">
                            <div class="calculate-item1">
                                <span class="jrfa">市场指导价</span>
                                <b><span id="show_money50">125,000</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">实际零售价</span>
                                <span id="real_money50" class="col-sm-7"><input type="text" name="real_money50" class="form-control input-bg" value="125,000"></span>
                            </div>
                            <div class="calculate-item1">
                                <span> 合同期(月)</span>
                                <div class="ul_limitMonth col-sm-7">
                                    <ul id="ul_limitMonth" class="input-bg">
                                        <li class="over">24</li>
                                        <li>36</li>
                                    </ul>
                                </div>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">预付款比例</span>
                                <b><span>0%</span></b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">保证金</span>
                                <b><span id="promise_money"></span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <fieldset>
                                    <label for="lc">
                                        公里数（公里）:</label>
                                    <b ><span id="text-handle_lc">10,000</span></b>
                                    <select name="lc" id="lc" style="display:none ">
                                        <option value="10000"  selected="selected">10,000</option>
                                        <option value="15000">15,000</option>
                                        <option value="20000">20,000</option>
                                        <option value="25000">25,000</option>
                                    </select>
                                </fieldset>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa"> 最低保值金额</span>
                                <b><span id="handle_bz"></span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa"> 月付款</span>
                                <b><span id="text-handle_yf"></span>元</b>
                            </div>
                            <script type="application/javascript">
                                var tx0yf = {
                                48:{
                                bzj:7.20,
                                24 :{ rate: 6.25, 10000:55.9, 15000:55.2, 20000:54.3, 25000:53.3 },
                                36 :{ rate: 5.83, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                49:{
                                bzj:7.35,
                                24 :{ rate: 6.02, 10000:55.9, 15000:55.2, 20000:54.3, 25000:53.3 },
                                36 :{ rate: 5.76, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                61:{
                                bzj:10.00,
                                24 :{ rate: 6.02, 10000:55.9, 15000:55.2, 20000:54.3, 25000:53.3 },
                                36 :{ rate: 5.76, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                50:{
                                bzj:10.00,
                                24 :{ rate: 6.02, 10000:55.9, 15000:55.2, 20000:54.3, 25000:53.3 },
                                36 :{ rate: 5.76, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                51:{
                                bzj:10.00,
                                24 :{ rate: 6.02, 10000:53.4, 15000:52.7, 20000:51.8, 25000:50.8 },
                                36 :{ rate: 5.76, 10000:47.2, 15000:46.3, 20000:44.9, 25000:43.4 }
                                },
                                64:{
                                bzj:10.00,
                                24 :{ rate: 6.02, 10000:46.0, 15000:45.3, 20000:44.4, 25000:43.4 },
                                36 :{ rate: 5.76, 10000:39.8, 15000:38.9, 20000:37.5, 25000:36.0 }
                                },
                                62:{
                                bzj:10.00,
                                24 :{ rate: 6.02, 10000:55.9, 15000:55.2, 20000:54.3, 25000:53.3 },
                                36 :{ rate: 5.76, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                66:{
                                bzj:10.00,
                                24 :{ rate: 6.02, 10000:55.9, 15000:55.2, 20000:54.3, 25000:53.3 },
                                36 :{ rate: 5.76, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                67:{
                                bzj:10.00,
                                24 :{ rate: 6.02, 10000:55.9, 15000:55.2, 20000:54.3, 25000:53.3 },
                                36 :{ rate: 5.76, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                68:{
                                bzj:10.00,
                                24 :{ rate: 6.02, 10000:53.4, 15000:52.7, 20000:51.8, 25000:50.8 },
                                36 :{ rate: 5.76, 10000:47.2, 15000:46.3, 20000:44.9, 25000:43.4 }
                                },


                                53:{
                                bzj:7.407,
                                24 :{ rate: 8.32, 10000:57.9, 15000:57.2, 20000:56.3, 25000:55.3 },
                                36 :{ rate: 8.48, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                54:{
                                bzj:10.00,
                                24 :{ rate: 7.68, 10000:57.9, 15000:57.2, 20000:56.3, 25000:55.3 },
                                36 :{ rate: 7.59, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                55:{
                                bzj:10.00,
                                24 :{ rate: 7.68, 10000:57.9, 15000:57.2, 20000:56.3, 25000:55.3 },
                                36 :{ rate: 7.59, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                56:{
                                bzj:10.00,
                                24 :{ rate: 7.68, 10000:55.5, 15000:54.8, 20000:53.9, 25000:52.9 },
                                36 :{ rate: 7.59, 10000:47.3, 15000:46.4, 20000:45.0, 25000:43.5 }
                                },
                                65:{
                                bzj:10.00,
                                24 :{ rate: 7.68, 10000:53.0, 15000:52.3, 20000:51.4, 25000:50.4 },
                                36 :{ rate: 7.59, 10000:44.8, 15000:43.9, 20000:42.5, 25000:41.0 }
                                },
                                63:{
                                bzj:10.00,
                                24 :{ rate: 7.68, 10000:57.9, 15000:57.2, 20000:56.3, 25000:55.3 },
                                36 :{ rate: 7.59, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },
                                69:{
                                bzj:10.00,
                                24 :{ rate: 7.68, 10000:57.9, 15000:57.2, 20000:56.3, 25000:55.3 },
                                36 :{ rate: 7.59, 10000:49.7, 15000:48.8, 20000:47.4, 25000:45.9 }
                                },


                                58:{
                                bzj:10.00,
                                24 :{ rate: 6.57, 10000:53.6, 15000:52.9, 20000:52.0, 25000:51.0 },
                                36 :{ rate: 7.61, 10000:47.4, 15000:46.5, 20000:45.1, 25000:43.6 }
                                },
                                59:{
                                bzj:10.00,
                                24 :{ rate: 6.21, 10000:53.6, 15000:52.9, 20000:52.0, 25000:51.0 },
                                36 :{ rate: 7.46, 10000:47.4, 15000:46.5, 20000:45.1, 25000:43.6 }
                                },
                                60:{
                                bzj:10.00,
                                24 :{ rate: 6.21, 10000:51.2, 15000:50.5, 20000:49.6, 25000:48.6 },
                                36 :{ rate: 7.46, 10000:44.9, 15000:44.0, 20000:42.6, 25000:41.1 }
                                }
                                };

                                //期限事件
                                
                                $("#ul_limitMonth").find("li").click(function(){
                                    $("#ul_limitMonth").find("li").removeClass("over");
                                    $(this).addClass("over");
                                    $('select#lc').val(10000);
                                    $('select#lc').trigger("click");
                                    $('select#lc').trigger("change");
                                });
                                //里程事件
                                re = new RegExp(",","g"); 
                                $("input[name=real_money50]").bind('click',function(){
                                    $('input[name=real_money50]').val($('input[name=real_money50]').val().replace(re,''));
                                });
                                $("input[name=real_money50]").bind('change',function(){
                                    realmoney = $('input[name=real_money50]').val();
                                    $('select#lc').trigger("click");
                                    $('select#lc').trigger("change");
                                });
                                
                                $('#lc').change(function(){
                                var car = $('#s_model').val();
                                var p= $('#lc').val();
                                var qx = $("#ul_limitMonth").find(".over").html();//$('#s_limitMonth').val();
                                var para = tx0yf[car][qx];
                                var model = getCurrentCar(car);
                                $('#show_money50').html(fmoney(model.info.price));
                                if(realmoney == 0){
                                    realmoney = model.info.price;
                                }
                                $('input[name=real_money50]').val(fmoney(realmoney));
                                console.log("realmoney:"+realmoney);
                                var pv = para[p]*money2f(realmoney)/100;
                                //console.log("pv:"+pv);
                                var monthly = Math.round( financialFormula.PMT( para.rate/100/12, parseInt(qx), money2f(realmoney), -pv, 1 ) );
                                //PMT(B14÷12,B6,−(B5+B11)×(1−B7),B15,1)
                                
                                $('#handle_bz').html(fmoney(Math.round(pv)));
                                $('#text-handle_yf').html(fmoney(monthly));
                                //dataLayer.push({'event':'event', 'cat':'金融计算器_主视觉', 'act':'计算贷款', 'lbl':'公里数'+$('#lc').find("option:selected").text()+'_201508040005'});
                                });

                                function bind_s(select){
                                select.selectToUISlider({});
                                }

                                bind_s($('select#lc'));
                            </script>

                        </div>
                        <div class="calculator" id="tx50sf" style="visibility:hidden;height: 0px;top:100%;left: 0;">
                            <div class="calculate-item1">
                                <span class="jrfa">市场指导价</span>
                                <b><span id="show_money50">125,000</span></b>
                            </div>
                            <div class="calculate-item1">
                                <span> 合同期(月)</span>
                                <select id="s_limitMonth50" style="float:right;">
                                    <option value="24">24</option>
                                    <option value="36">36</option>
                                </select>
                            </div>
                            <!--<div class="calculate-item1">
                            <span class="jrfa">首付款比率</span>
                            <b><span id="sfkbl">41.4</span>%</b>
                            </div>-->
                            <div class="calculate-item1">
                                <span class="jrfa">首付款金额</span>
                                <b><span id="sfkje">51,750</span></b>
                            </div>
                            <div class="calculate-item1">
                                <fieldset>
                                    <label for="lc50">
                                        公里数（公里）:</label>
                                    <b ><span id="text-handle_lc50">10,000</span></b>
                                    <select name="lc50" id="lc50" style="display:none ">
                                        <option value="10000"  selected="selected">10,000</option>
                                        <option value="15000">15,000</option>
                                        <option value="20000">20,000</option>
                                        <option value="25000">25,000</option>
                                    </select>
                                </fieldset>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa"> 最低保值金额</span>
                                <b><span id="zdbzje">73,250</span></b>
                            </div>

                            <div class="calculate-item1">
                                <span class="jrfa"> 月付款</span>
                                <b><span id="text-handle_yf50">499</span></b>
                            </div>
                            <!--<div class="calculate-item1">
                                <span class="jrfa"> 总贴息金额</span>
                                <b><span id="ztxje">5,717</span></b>
                            </div>-->
                            <script type="application/javascript">
                                var data50 = {
                                0:{'24':{'10000':[41.4,51750,73250,499,5717],'15000':[42.1,52625,72375,493,5649],'20000':[43.0,53750,71250,485,5561],'25000':[44.0,55000,70000,477,5463]},
                                '36':{'10000':[49.7,62125,62875,399,6360],'15000':[50.6,63250,61750,392,6246],'20000':[52.0,65000,60000,381,6069],'25000':[53.5,66875,58125,369,5880]}
                                },
                                1:{'24':{'10000':[41.4,56304,79696,599,5020],'15000':[42.1,57256,78744,592,4960],'20000':[43.0,58480,77520,583,4883],'25000':[44.0,59840,76160,573,4797]},
                                '36':{'10000':[49.7,67592,68408,499,4928],'15000':[50.6,68816,67184,490,4840],'20000':[52.0,70720,65280,476,4703],'25000':[53.5,72760,63240,461,4556]}
                                },
                                2:{'24':{'10000':[41.4,64584,91416,687,5758],'15000':[42.1,65676,90324,679,5689],'20000':[43.0,67080,88920,669,5601],'25000':[44.0,68640,87360,657,5503]},
                                '36':{'10000':[49.7,77532,78468,573,5653],'15000':[50.6,78936,77064,562,5552],'20000':[52.0,81120,74880,546,5394],'25000':[53.5,83460,72540,529,5226]}
                                },
                                3:{'24':{'10000':[43.9,77264,98736,742,6219],'15000':[44.6,78496,97504,733,6142],'20000':[45.5,80080,95920,721,6042],'25000':[46.5,81840,94160,708,5931]},
                                '36':{'10000':[52.2,91872,84128,614,6061],'15000':[53.1,93456,82544,602,5947],'20000':[54.5,95920,80080,584,5769],'25000':[56.0,98560,77440,565,5579]}
                                }
                                };

                                //保值金额事件
                                /* $('#bz').change(function(){
                                var car = $('#s_model').val();
                                var indexz =  $('#bz').find("option:selected").attr('data-lc');
                                var indexq =  $('#bz').find("option:selected").attr('data-qx');
                                $.each(data[car],function(i,v){
                                $.each(v,function(ii,vv){
                                if(ii == indexz && i== indexq){
                                $('#s_limitMonth').val(i);
                                $('select#lc').val(ii);
                                $('select#lc').trigger("click");
                                $('select#yf').val($('#bz').val());
                                $('select#yf').trigger("click");

                                write_right()
                                }
                                });
                                });
                                });*/

                                //月付款金额事件
                                /*$('#yf').change(function(){
                                var car = $('#s_model').val();
                                var indexz =  $('#yf').find("option:selected").attr('data-lc');
                                var indexq =  $('#yf').find("option:selected").attr('data-qx');
                                $.each(data[car],function(i,v){
                                $.each(v,function(ii,vv){
                                if(ii == indexz && i== indexq){
                                $('#s_limitMonth').val(i);
                                $('select#lc').val(ii);
                                $('select#lc').trigger("click");
                                $('select#bz').val($('#yf').val());
                                $('select#bz').trigger("click");

                                write_right()
                                }
                                });
                                });
                                });*/


                                //期限事件
                                $('#s_limitMonth50').change(function(){
                                var p= $('#s_limitMonth50').val();
                                $('select#lc50').val(10000);
                                $('select#lc50').trigger("click");
                                $('select#lc50').trigger("change");

                                write_right()
                                });


                                //里程事件
                                $('#lc50').change(function(){
                                var car = $('#s_model').val();
                                var p= $('#lc50').val();
                                var qx = $('#s_limitMonth50').val();
                                $('#sfkbl').html(data50[car][qx][p][0]);
                                $('#sfkje').html(fmoney(data50[car][qx][p][1]));
                                $('#zdbzje').html(fmoney(data50[car][qx][p][2]));
                                $('#text-handle_yf50').html(fmoney(data50[car][qx][p][3]));
                                $('#ztxje').html(fmoney(data50[car][qx][p][4]));
                                dataLayer.push({'event':'event', 'cat':'金融计算器_主视觉', 'act':'计算贷款', 'lbl':'公里数'+$('#lc').find("option:selected").text()+'_201508040005'});
                                /* if(qx == '24'){
                                if(p == '10000'){$('#handle_bz').html(data[car][p][qx][0]);$('select#yf').val(7);}
                                if(p == '15000'){$('select#bz').val(6);$('select#yf').val(6);}
                                if(p == '20000'){$('select#bz').val(5);$('select#yf').val(5);}
                                if(p == '25000'){$('select#bz').val(4);$('select#yf').val(4);}
                                }else{
                                if(p == '10000'){$('select#bz').val(3);$('select#yf').val(3);}
                                if(p == '15000'){$('select#bz').val(2);$('select#yf').val(2);}
                                if(p == '20000'){$('select#bz').val(1);$('select#yf').val(1);}
                                if(p == '25000'){$('select#bz').val(0);$('select#yf').val(0);}
                                }*/
                                write_right()
                                });
                                /*function write_bz(car){
                                $("#bz option").remove();
                                $("#bz").append("<option value=0 data-qx=36 data-lc=25000 >"+fmoney(data[car]['36']['25000'][0], 2)+"</option>");
                                $("#bz").append("<option value=1 data-qx=36 data-lc=20000 >"+fmoney(data[car]['36']['20000'][0], 2)+"</option>");
                                $("#bz").append("<option value=2 data-qx=36 data-lc=15000 >"+fmoney(data[car]['36']['15000'][0], 2)+"</option>");
                                $("#bz").append("<option value=3 data-qx=36 data-lc=10000 >"+fmoney(data[car]['36']['10000'][0], 2)+"</option>");
                                $("#bz").append("<option value=4 data-qx=24 data-lc=25000 >"+fmoney(data[car]['24']['25000'][0], 2)+"</option>");
                                $("#bz").append("<option value=5 data-qx=24 data-lc=20000 >"+fmoney(data[car]['24']['20000'][0], 2)+"</option>");
                                $("#bz").append("<option value=6 data-qx=24 data-lc=15000 >"+fmoney(data[car]['24']['15000'][0], 2)+"</option>");
                                $("#bz").append("<option value=7 data-qx=24 data-lc=10000 >"+fmoney(data[car]['24']['10000'][0], 2)+"</option>");
                                $('#handle_bz').parent().remove();
                                }

                                function write_yf(car){
                                $("#yf option").remove();
                                $("#yf").append("<option value=0 data-qx=36 data-lc=25000 >"+fmoney(data[car]['36']['25000'][1], 2)+"</option>");
                                $("#yf").append("<option value=1 data-qx=36 data-lc=20000 >"+fmoney(data[car]['36']['20000'][1], 2)+"</option>");
                                $("#yf").append("<option value=2 data-qx=36 data-lc=15000 >"+fmoney(data[car]['36']['15000'][1], 2)+"</option>");
                                $("#yf").append("<option value=3 data-qx=36 data-lc=10000 >"+fmoney(data[car]['36']['10000'][1], 2)+"</option>");
                                $("#yf").append("<option value=4 data-qx=24 data-lc=25000 >"+fmoney(data[car]['24']['25000'][1], 2)+"</option>");
                                $("#yf").append("<option value=5 data-qx=24 data-lc=20000 >"+fmoney(data[car]['24']['20000'][1], 2)+"</option>");
                                $("#yf").append("<option value=6 data-qx=24 data-lc=15000 >"+fmoney(data[car]['24']['15000'][1], 2)+"</option>");
                                $("#yf").append("<option value=7 data-qx=24 data-lc=10000 >"+fmoney(data[car]['24']['10000'][1], 2)+"</option>");
                                $('#handle_yf').parent().remove();
                                }*/


                                function bind_s(select){
                                select.selectToUISlider({});
                                }

                                bind_s($('select#lc50'));


                            </script>

                        </div>
                        <div class="calculator" id="jr0wk" style="visibility:hidden;height: 0px;top:100%;left: 0;">

                            <div class="calculate-item1">
                                <span class="jrfa">市场指导价</span>
                                <b><span id="show_money2">125,000</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span> 贷款期（月）</span>
                                <select id="s_limitMonth2" style="float:right;">
                                    <option value="24">24</option>
                                    <option value="36">36</option>
                                </select>
                            </div>

                            <div class="calculate-item1">
                                <span class="jrfa">最低首付金额</span>
                                <b><span id="text-handle_sf2">61,475</span></b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最低首付比例</span>
                                <b><span id="text-handle_bl2">49.18%</span></b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最高尾款金额</span>
                                <b><span>0</span>元</b>
                            </div>



                            <div class="calculate-item1">
                                <span class="jrfa">月付款</span>
                                <b><span id="text-handle_yf2">2,699</span>元</b>
                            </div>
                            <script type="application/javascript">

                                var data2 = {
                                0:{'24':[61475,2699,'49.18%'],'36':[63025,1799,'50.24%']},
                                1:{'24':[67769,2899,'49.83%'],'36':[70584,1899,'51.90%']},
                                2:{'24':[78000,3314,'50.00%'],'36':[78000,2264,'50.00%']},
                                3:{'24':[88000,3739,'50.00%'],'36':[88000,2555,'50.00%']}
                                };

                                //期限事件
                                $('#s_limitMonth2').change(function(){
                                var p= $('#s_limitMonth2').val();
                                var car = $('#s_model').val();
                                $('#text-handle_sf2').html(fmoney(data2[car][p][0]));
                                $('#text-handle_yf2').html(fmoney(data2[car][p][1]));
                                $('#text-handle_bl2').html(data2[car][p][2]);
                                //write_right2()
                                });






                            </script>

                        </div>
                        <div class="calculator" id="jr0yg" style="visibility:hidden;height: 0px;top:100%;left: 0;">

                            <div class="calculate-item1">
                                <span class="jrfa">市场指导价</span>
                                <b><span id="show_money3">125,000</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">实际零售价</span>
                                <span id="real_money3" class="col-sm-7"><input type="text" name="real_money3" class="form-control input-bg" value="125,000"></span>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最低首付金额</span>
                                <b><span id="yfk">37,500</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最低首付比例</span>
                                <b id="blfk">30%</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最高尾款金额</span>
                                <b><span>0</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span> 贷款期（月）</span>
<!--                                <select id="s_limitMonth3" style="float:right;">
                                    <option value="24">24</option>
                                    <option value="36">36</option>
                                </select>-->
                                <div class="ul_limitMonth col-sm-7">
                                    <ul id="s_limitMonth3" class="input-bg">
                                        <li class="over">24</li>
                                        <li>36</li>
                                    </ul>
                                </div>
                            </div>

                            <div class="calculate-item1">
                                <div class="calculate-item1">
                                    <span class="jrfa">月付款</span>
                                    <b><span id="text-handle_yf3"></span>元</b>
                                </div>
                            </div>
                            <script type="application/javascript">
                                var jr0yg = {
                                48:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                49:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                50:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                51:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                53:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                54:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                55:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                56:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                58:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                59:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                60:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                61:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                62:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                63:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                64:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                65:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                66:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                67:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                68:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} },
                                69:{ 24:{rate:0.00, pay:20}, 36:{rate:0.00, pay:30} }
                                };

                                
                                re = new RegExp(",","g"); 
                                $("input[name=real_money3]").bind('click',function(){
                                    $('input[name=real_money3]').val($('input[name=real_money3]').val().replace(re,''));
                                });
                                $("input[name=real_money3]").bind('change',function(){
                                    realmoney = $('input[name=real_money3]').val();
                                    $("#s_limitMonth3").find(".over").trigger("click");
                                });
                                //期限事件
                                $("#s_limitMonth3").find("li").click(function(){
                                    $("#s_limitMonth3").find("li").removeClass("over");
                                    $(this).addClass("over");
                                    var p= $("#s_limitMonth3").find(".over").html();//$('#s_limitMonth3').val();
                                    var car = $('#s_model').val();

                                    var para = jr0yg[car][p];
                                    var model = getCurrentCar(car);
                                    $('#show_money3').html(fmoney(model.info.price));
                                    if(realmoney == 0){
                                        realmoney = model.info.price;
                                    }
                                    $('input[name=real_money3]').val(fmoney(realmoney));
                                    console.log("realmoney:"+realmoney);
                                    var yfk = money2f(realmoney)*para.pay/100;
                                    var monthly = Math.round( financialFormula.PMT( para.rate/100/12, parseInt(p), money2f(realmoney)-yfk, 0, 0 ) );
                                    console.log(monthly);
                                    $('#text-handle_yf3').html(fmoney(monthly));
                                    $('#blfk').html(para.pay+'%');
                                    $('#yfk').html(fmoney(yfk));
                                });
                                
//                                $('#s_limitMonth3').change(function(){
//                                var p= $('#s_limitMonth3').val();
//                                var car = $('#s_model').val();
//
//                                var para = jr0yg[car][p];
//                                var model = getCurrentCar(car);
//                                $('#show_money3').html(fmoney(model.info.price));
//                                if(realmoney == 0){
//                                    realmoney = model.info.price;
//                                }
//                                $('input[name=real_money3]').val(fmoney(realmoney));
//                                console.log("realmoney:"+realmoney);
//                                var yfk = money2f(realmoney)*para.pay/100;
//                                var monthly = Math.round( financialFormula.PMT( para.rate/100/12, parseInt(p), money2f(realmoney)-yfk, 0, 0 ) );
//                                console.log(monthly);
//                                $('#text-handle_yf3').html(fmoney(monthly));
//                                $('#blfk').html(para.pay+'%');
//                                $('#yfk').html(fmoney(yfk));
//                                });

                                function bind_s(select){
                                select.selectToUISlider({});
                                }



                            </script>

                        </div>
                        <div class="calculator" id="jd30sf" style="visibility:hidden;height: 0px;top:100%;left: 0;">

                            <!--<div class="calculate-item1">-->
                            <!--<span class="jrfa">市场指导价</span>-->
                            <!--<b><span id="show_money4">125,000</span></b>-->
                            <!--</div>-->
                            <div class="calculate-item1">
                                <span class="jrfa">市场指导价</span>
                                <b><span id="show_money4">125,000</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">实际零售价</span>
                                <span id="real_money4" class="col-sm-7"><input type="text" name="real_money4" class="form-control input-bg" value="125,000"></span>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最低首付金额</span>
                                <b><span id="yfk4">37,500</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最低首付比例</span>
                                <b><span id="blfk">30%</span></b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">第12个月付款金额</span>
                                <b><span id="12yfk">43,750</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">第12个月付款比例</span>
                                <b><span id="12blfk">35%</span></b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最高尾款金额</span>
                                <b><span id="zgyfk">43,750</span>元</b>
                            </div>
                            <div class="calculate-item1">
                                <span class="jrfa">最高尾款比例</span>
                                <b><span>35%</span></b>
                            </div>
                            <div class="calculate-item1">
                                <span> 贷款期（月）</span>
                                <b><span>24</span></b>

                            </div>

                            <div class="calculate-item1">
                                <div class="calculate-item1">
                                    <span class="jrfa">月付款</span>
                                    <b><span id="text-handle_yf4">199</span>元</b>
                                </div>
                            </div>
                            <script type="application/javascript">
                                var jd30sf = {
                                48:{rate:[30,35,35], monthly:99},
                                49:{rate:[30,35,35], monthly:108},
                                50:{rate:[30,35,35], monthly:124},
                                51:{rate:[30,35,35], monthly:140},
                                53:{rate:[30,35,35], monthly:99},
                                54:{rate:[30,35,35], monthly:108},
                                55:{rate:[30,35,35], monthly:122},
                                56:{rate:[30,35,35], monthly:137},
                                58:{rate:[30,35,35], monthly:122},
                                59:{rate:[30,35,35], monthly:137},
                                60:{rate:[30,35,35], monthly:152},
                                61:{rate:[30,35,35], monthly:111},
                                62:{rate:[30,35,35], monthly:112},
                                63:{rate:[30,35,35], monthly:118},
                                64:{rate:[30,35,35], monthly:181},
                                65:{rate:[30,35,35], monthly:175},
                                66:{rate:[30,35,35], monthly:116},
                                67:{rate:[30,35,35], monthly:116},
                                68:{rate:[30,35,35], monthly:138},
                                69:{rate:[30,35,35], monthly:130}
                                };
                                re = new RegExp(",","g"); 
                                $("input[name=real_money4]").bind('click',function(){
                                    $('input[name=real_money4]').val($('input[name=real_money4]').val().replace(re,''));
                                });
                                $("input[name=real_money4]").bind('change',function(){
                                    realmoney = $('input[name=real_money4]').val();
                                    var p= $("#s_limitMonth3").find(".over").html();//$('#s_limitMonth3').val();
                                    var car = $('#s_model').val();

                                    var para = jr0yg[car][p];
                                    var model = getCurrentCar(car);
                                    $('#show_money4').html(fmoney(model.info.price));
                                    if(realmoney == 0){
                                        realmoney = model.info.price;
                                    }
                                    $('input[name=real_money4]').val(fmoney(realmoney));


                                    $('#yfk4').html(fmoney(money2f( realmoney ) * jd30sf[car].rate[0] / 100));
                                    $('#12yfk').html(fmoney(money2f( realmoney ) * jd30sf[car].rate[1] / 100));
                                    $('#zgyfk').html(fmoney(money2f( realmoney ) * jd30sf[car].rate[2] / 100));
                                    //console.log(jd30sf[id].monthly);
                                    $('#text-handle_yf4').html(fmoney(jd30sf[car].monthly));
                                });
                                //期限事件
                                /* $('#s_limitMonth3').change(function(){
                                var p= $('#s_limitMonth3').val();
                                var car = $('#s_model').val();
                                $('#text-handle_yf3').html(fmoney(data3[car][p][1]));
                                $('#yfk').html(fmoney(data3[car][p][0]));
                                });*/

                                function bind_s(select){
                                select.selectToUISlider({});
                                }



                            </script>

                        </div>
                        <div class="clearfix"></div>
                    </div>
                    </div>
                    </div>
                    <div class="dot"></div>
                    <div class="footer-txt">限时专案有效期至2017年9月30日,具体车型及价格请垂询当地经销商店及店内销售人员。</div>
                </form>
            </div>
            <div id="poptips"></div>
        </div>
        <script>document.write('<script src="/static/smart/index.js?' + Math.random() + '"><\/script>');</script>
        <script type="text/javascript" src="/static/smart/calculator.js?{{time()}}"></script>
        <script src="/static/smart/index-min.js?{{time()}}"></script>
        <script>
            dataLayer = [{
                    'cookie': 'GTM_cookie_data',
                    'session_id': '',
                    'ip': '47.74.5.46',
                    'server_time': '2017-06-22 15:01:39',
                    'OMID': '',
                    'utm_source': '',
                    'utm_medium': '',
                    'utm_term': '',
                    'utm_content': '',
                    'utm_campaign': ''
                }];

        </script>
    </body>
</html>